# code: PY
# time:2020/11/29
from flask import Flask, request, make_response

app = Flask(__name__)

@app.route('/')
def index():
    rsp =make_response('<h1>cookie</h1>')
    rsp.set_cookie('username','zs')
    return rsp

@app.route('/user/<name>')
def myapp(name):
    return f'hello {name}'

if __name__ == "__main__":
    app.run(debug=True)